package com.zjff.myshop.mapper;

import com.zjff.myshop.front.pojo.vo.StockCountVO;
import com.zjff.myshop.entity.Goods;

import java.util.HashMap;
import java.util.List;

public interface GoodsMapper {
    int insert(Goods record);

    int deleteByPrimaryKey(Integer id);

    int deleteBatch(Integer[] ids);

    int update(Goods goods);

    int updateByStockCountList(List<StockCountVO> stockCountList);

    Goods selectByPrimaryKey(Integer id);

    List<Goods> selectByIds(Integer[] ids);

    List<Goods> selectPage(HashMap map);
}